package com.lgj.gateway;

import com.lgj.feign.GrayscaleServiceInstanceLoadBalancer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @Author guangjie.liao
 * @Description 网关服务启动类
 * @Date 10:28 2022/8/25
 **/
@EnableDiscoveryClient
@EnableGlobalMethodSecurity(prePostEnabled = true)
@SpringBootApplication(scanBasePackages = "com.lgj.**")
@LoadBalancerClients(defaultConfiguration = GrayscaleServiceInstanceLoadBalancer.class)
public class GatewayServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayServerApplication.class, args);
    }
}
